home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / UITools / qcbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-21  |  3.1 KB  |  95 lines

  1. #if !defined(AFX_QCBUTTON_H__13FCF015_4A14_11D1_A956_00C0F6A06F60__INCLUDED_)
  2. #define AFX_QCBUTTON_H__13FCF015_4A14_11D1_A956_00C0F6A06F60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CQCButton wrapper class
  14.  
  15. class CQCButton : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CQCButton)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0xbe18a626, 0xe7f3, 0x11d0, { 0xa9, 0x56, 0x0, 0xc0, 0xf6, 0xa0, 0x6f, 0x60 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     CString GetControlTitleFont();
  43.     void SetControlTitleFont(LPCTSTR);
  44.     long GetControlTitleColor();
  45.     void SetControlTitleColor(long);
  46.     long GetControlTitleFontStyle();
  47.     void SetControlTitleFontStyle(long);
  48.     long GetControlTitleFontSize();
  49.     void SetControlTitleFontSize(long);
  50.     long GetControlBorderStyle();
  51.     void SetControlBorderStyle(long);
  52.     long GetControlBorderColor();
  53.     void SetControlBorderColor(long);
  54.     long GetControlColor();
  55.     void SetControlColor(long);
  56.     long GetControlBackgroundColor();
  57.     void SetControlBackgroundColor(long);
  58.     double GetControlBottom();
  59.     void SetControlBottom(double);
  60.     double GetControlLeft();
  61.     void SetControlLeft(double);
  62.     double GetControlRight();
  63.     void SetControlRight(double);
  64.     double GetControlTop();
  65.     void SetControlTop(double);
  66.     long GetControlBorderThickness();
  67.     void SetControlBorderThickness(long);
  68.     CString GetControlTitleString();
  69.     void SetControlTitleString(LPCTSTR);
  70.     long GetControlButtonStyle();
  71.     void SetControlButtonStyle(long);
  72.     long GetControlButtonLook();
  73.     void SetControlButtonLook(long);
  74.     CString GetControlButtonString();
  75.     void SetControlButtonString(LPCTSTR);
  76.     BOOL GetControlButtonLeftText();
  77.     void SetControlButtonLeftText(BOOL);
  78.     long GetControlOffColor();
  79.     void SetControlOffColor(long);
  80.     BOOL GetControlDefaultOn();
  81.     void SetControlDefaultOn(BOOL);
  82.  
  83. // Operations
  84. public:
  85.     BOOL SetButtonState(BOOL nState);
  86.     void ChangeControlColor(long rgbColor);
  87.     void UpdateControl();
  88.     void AboutBox();
  89. };
  90.  
  91. //{{AFX_INSERT_LOCATION}}
  92. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  93.  
  94. #endif // !defined(AFX_QCBUTTON_H__13FCF015_4A14_11D1_A956_00C0F6A06F60__INCLUDED_)
  95.